<template>
    <div>
        <a-pagination :total="50" :item-render="itemRender" :defaultPageSize="5" :style="{ float: 'right', position: 'relative', right: '10px', top: '20px' }" />
        <div style="clear: both"></div>
    </div>
</template>
<script>
export default {
  methods: {
    itemRender(current, type, originalElement) {
      if (type === 'prev') {
        return <a>上一页</a>;
      } else if (type === 'next') {
        return <a>下一页</a>;
      }
      return originalElement;
    },
  },
};
</script>
